﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Easily
{
    /// <summary>frmNodeEditer类:控件代码注释编辑类</summary>
    public partial class frmNodeEditer : Form
    {
        /// <summary>代码注释说明</summary>
        public string NoteEdit;

        /// <summary>frmNodeEditer类的构造函数</summary>
        public frmNodeEditer(string Note)
        {
            InitializeComponent();
            NoteEdit = Note;
            this.richTextBoxNoteEditer.Text = NoteEdit;
        }

        /// <summary>取消按钮</summary>
        /// <summary>关闭代码注释编辑窗口</summary>
        private void btnCancle_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        /// <summary>确认按钮</summary>
        /// <summary>返回代码注释</summary>
        private void btnOK_Click(object sender, EventArgs e)
        {
            NoteEdit = this.richTextBoxNoteEditer.Text;
        }
    }
}